package com.xinjian.jianba.dto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

import com.xinjian.jianba.annotation.Validator;

public class UserMonmentsDto implements Serializable{
		
	private static final long serialVersionUID = 6033250449947023138L;
		@Validator(nullable=false,description="发布用户id")	
		private String userId;
		@Validator(nullable=true,description="发布时间")
		private String publishTime;
		@Validator(nullable=false,description="地点名称")
		private String adressName;
		@Validator(nullable=false,description="地点id")
		private String siteId;
		//经度
		@Validator(nullable=false,description="经度")
		private BigDecimal lngfloat;
		//纬度
		@Validator(nullable=false,description="纬度")
		private BigDecimal latfloat;
		@Validator(nullable=false,description="详细内容")
		private String content;
		//图片的地址
		@Validator(nullable=false,description="图片的地址")
		private String url;
		
		@Validator(nullable=false,description="是否记录到足迹")
		private String isTrack;//0:不记录到足迹  //1:记录到足迹
		
		private String imgStr; 
		
		public String getUrl() {
			return url;
		}
		public void setUrl(String url) {
			this.url = url;
		}
		public String getUserId() {
			return userId;
		}
		public void setUserId(String userId) {
			this.userId = userId;
		}
		
		
		public String getAdressName() {
			return adressName;
		}
		public void setAdressName(String adressName) {
			this.adressName = adressName;
		}
		public BigDecimal getLngfloat() {
			return lngfloat;
		}
		public void setLngfloat(BigDecimal lngfloat) {
			this.lngfloat = lngfloat;
		}
		public BigDecimal getLatfloat() {
			return latfloat;
		}
		public void setLatfloat(BigDecimal latfloat) {
			this.latfloat = latfloat;
		}
		public String getContent() {
			return content;
		}
		public void setContent(String content) {
			this.content = content;
		}
		
		public String getPublishTime() {
			return publishTime;
		}
		public void setPublishTime(String publishTime) {
			this.publishTime = publishTime;
		}
		public String getGEOM(){
			return "POINT(".concat(lngfloat.toString()) + " " + latfloat.toString() + ")";
		}
		
		public String getSiteId() {
			return siteId;
		}
		public void setSiteId(String siteId) {
			this.siteId = siteId;
		}
		public String getIsTrack() {
			return isTrack;
		}
		public void setIsTrack(String isTrack) {
			this.isTrack = isTrack;
		}
		public String getImgStr() {
			return imgStr;
		}
		public void setImgStr(String imgStr) {
			this.imgStr = imgStr;
		}
		
		
		
		
		
		
}
